<template>
  <div>
    <div class="his-hot">
      <div class="hd">
        <h4>历史记录</h4>
        <van-icon name="delete" />
      </div>
      <div class="bd">
       <van-tag type="default" v-for="(item,index) in historyListData" :key="index">
           {{item}}
       </van-tag>
       
      </div>
    </div>

     <div class="his-hot">
      <div class="hd">
        <h4>热门搜索</h4>
      
      </div>
      <div class="bd">
       <van-tag type="default" v-for="(item,index) in hotKeywordListData" :key="index"  :color="item.is_hot?'red':'' ">
           {{item.keyword}}
           </van-tag>
   
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Vue2Historyhot",

  data() {
    return {};
  },
  props:["historyListData","hotKeywordListData"],
  created(){

  },

  mounted() {},

  methods: {},
};

</script>

<style lang="stylus" scoped>
.his-hot {
  background: #fff;
  padding: 10px;
margin-bottom: 10px
  .hd {
    display: flex;
    justify-content: space-between;
    font-size: 20px;

    h4 {
      line-height: 0px;
    }
  }
   .van-tag{
        margin-right: 5px
    }
    .red{
        color: red
    }
}       
</style>